﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 会诊录入数据表(门急诊、住院)
    /// </summary>
    public partial class ConsultationTbDatum
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 拟会诊时间
        /// </summary>
        public DateTime? ConsultationDate { get; set; }
        /// <summary>
        /// 会诊类型id
        /// </summary>
        public int? ConsultationTypeId { get; set; }
        /// <summary>
        /// 会诊地点
        /// </summary>
        public string? Addr { get; set; }
        /// <summary>
        /// 会诊目的
        /// </summary>
        public string? Purpose { get; set; }
        /// <summary>
        /// 患者主诉信息
        /// </summary>
        public string? ChiefComplaint { get; set; }
        /// <summary>
        /// 患者病历概述
        /// </summary>
        public string? CaseHistory { get; set; }
        /// <summary>
        /// 患者诊断信息
        /// </summary>
        public string? Diagnose { get; set; }
        /// <summary>
        /// 会诊的有效期
        /// </summary>
        public int? ValidTime { get; set; }
        /// <summary>
        /// 该类会诊的有效期单位码值
        /// </summary>
        public string? ValidTimeUnit { get; set; }
        /// <summary>
        /// 会诊超时时间（根据会诊提交时间+会诊有效期计算）
        /// </summary>
        public DateTime? TimeOutDate { get; set; }
        /// <summary>
        /// 是否需要科主任审批0否1是
        /// </summary>
        public byte? DeptAuditFlag { get; set; }
        /// <summary>
        /// 是否需要医务部审批0否1是
        /// </summary>
        public byte? MedicalAuditFlag { get; set; }
        /// <summary>
        /// 科室主任审批人工号
        /// </summary>
        public int? DeptAuditUserId { get; set; }
        /// <summary>
        /// 科室主任审批时间
        /// </summary>
        public DateTime? DeptAuditDate { get; set; }
        /// <summary>
        /// 科室主任审批状态
        /// 0拒绝
        /// 1通过
        /// </summary>
        public byte? DeptAuditStatus { get; set; }
        /// <summary>
        /// 科室主任审批意见
        /// </summary>
        public string? DeptAuditOpinion { get; set; }
        /// <summary>
        /// 医务部审批人工号
        /// </summary>
        public int? MedicalAuditUserId { get; set; }
        /// <summary>
        /// 医务部审批时间
        /// </summary>
        public DateTime? MedicalAuditDate { get; set; }
        /// <summary>
        /// 医务部审批状态
        /// 0拒绝
        /// 1通过
        /// </summary>
        public byte? MedicalAuditStatus { get; set; }
        /// <summary>
        /// 医务部审批意见
        /// </summary>
        public string? MedicalAuditOpinion { get; set; }
        /// <summary>
        /// 会诊状态：
        /// -1：待提交
        /// 0：科室主任审批中
        /// 1：医务部审批中
        /// 2：科室主任已驳回
        /// 3：医务部已驳回
        /// 4：待接受
        /// 5：已接受
        /// 6:  邀请人未到
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 医嘱状态（0待审核，1已审核），与电子医嘱状态同步，护士审核时需要同步修改此字段
        /// </summary>
        public byte? OrderStatus { get; set; }
        /// <summary>
        /// 病人来源
        /// 1门诊2急诊3住院
        /// </summary>
        public byte? PatSource { get; set; }
        /// <summary>
        /// 病人挂号流水号
        /// </summary>
        public int? PatRegNo { get; set; }
        /// <summary>
        /// 患者挂号科室id
        /// </summary>
        public int? PatRegDeptId { get; set; }
        /// <summary>
        /// 挂号科室名称
        /// </summary>
        public string? PatRegDeptName { get; set; }
        /// <summary>
        /// 患者挂号日期
        /// </summary>
        public DateTime? PatRegDate { get; set; }
        /// <summary>
        /// 病人住院流水号
        /// </summary>
        public string? PatHospNo { get; set; }
        /// <summary>
        /// 患者住院科室id
        /// </summary>
        public int? PatHospDeptId { get; set; }
        /// <summary>
        /// 患者住院科室名称
        /// </summary>
        public string? PatHospDeptName { get; set; }
        /// <summary>
        /// 患者住院日期
        /// </summary>
        public DateTime? PatHospDate { get; set; }
        /// <summary>
        /// 患者id
        /// </summary>
        public int? PatId { get; set; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string? PatName { get; set; }
        /// <summary>
        /// 申请人工号
        /// </summary>
        public int? ApplyUserId { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string? ApplyUserName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 作废标记0否1是
        /// </summary>
        public byte? InvalidFlag { get; set; }
        /// <summary>
        /// 删除标记0否1是
        /// </summary>
        public byte? DelFlag { get; set; }
        /// <summary>
        /// 医院编码
        /// </summary>
        public byte? HospId { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 申请人科室id
        /// </summary>
        public int? ApplyDeptId { get; set; }
        /// <summary>
        /// 患者性别：DictionaryTypeID = 34
        /// </summary>
        public byte? PatSex { get; set; }
        /// <summary>
        /// 患者年龄
        /// </summary>
        public int? PatAge { get; set; }
        /// <summary>
        /// 患者过敏信息
        /// </summary>
        public string? PatAllergy { get; set; }
        public int? ConsultationLevel { get; set; }
    }
}
